.field {
  position: relative;
  width: 250px;
  display: inline-block;
  margin: 1rem 1rem 1rem 0;

}

.field label {
  position: absolute;
  left: 10px;
  top: 39%;
  transform: translateY(-50%);
  color: #777;
  pointer-events: none;
  transition: 0.2s ease;
  background: white;
  padding: 0 4px;
}

.pc_table {
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom:5rem;
  width: 70%;
  max-height: 800px;
  overflow-y: scroll;
  background-color: white;
}

.pc_row {
  display: grid;
  grid-template-columns: 150px 1fr 1fr 1fr 1fr 1fr 1fr;
  border-bottom: 1px solid #ddd;
}
.pc_row_inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #ddd;
}

.pc_header_sticky {
  position: sticky;
  top: 0;
  z-index: 1;
}

.pc_row:hover {
  background-color: #d6e8fa !important;
}

.pc_row:nth-child(even) {
  background-color: #f9fafb;
}


.pc_item {
  padding: 10px 12px;
  display: flex;
  align-items: center;
}

.pc_item img {
  width: 256px;
  aspect-ratio: 1;
  object-fit: contain;
}

.pc_header {
  background: #f5f5f5;
  font-weight: 600;
  display: flex;
  align-items: center;
  padding: 10px 12px;
}



.pc_row_hidden {
  display: none!important;
}

.pc_btn{
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: 0.2s ease;
}

.pc_btn_red{
  background-color: #dc3545;
  color: white !important;
}

.pc_btn_green{
  background-color: #28a745;
  color: white !important;
}

.pc_btn_red:hover{
  background-color: #c82333;
}

.pc_btn_green:hover{
  background-color: #1e8e3e;
}

/* .pc_matrix  .pc_col {
  min-width: clamp(240px, 20vw, 360px);
} */

.pc_matrix {
  display: grid;
  grid-template-columns: repeat(3, auto);
  overflow: hidden;
  gap: 0;
  width:0px;
  height:0px;
  transition: width 0.6s ease, height 0.3s ease;
  grid-column: span 7;
}

.pc_matrix.is-open{
  height: calc(100% - 2rem);
  width: 100%;
  margin-bottom: 2rem;
}

.pc_matrix_labels {
  display: grid;
  background: #f5f5f5;
  font-weight: 600;
}

.pc_matrix_labels > div {
  padding: 10px;
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

.pc_matrix_labels > div:last-child {
  border-bottom: 1px solid #ddd;
}

.pc_matrix > .pc_col {
  display: grid;
  /* grid-template-rows: repeat(9, minmax(40px, auto)); */
  background-color: white;
}

.pc_matrix > .pc_col > div {
  padding: 10px;
  border-right: 1px solid #ddd;
  border-top: 1px solid #ddd;
}

.pc_matrix > .pc_col > div:last-child {
  border-bottom: 1px solid #ddd;
}



.pc_table_hidden {
  width: 0;
  height: 0;
  overflow: hidden;
  transition: width 0.6s ease, height 0.3s ease;
  margin-bottom: 0;
}

.pc_table_hidden.is-open{
  width: 50vw;
  height: 100%;
  margin-bottom: 2rem;
}

/* beim Fokus ODER wenn Text drin ist */
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: -8px;
  font-size: 12px;
  color: #333;
}

.pc_input {
  width: calc(100% - 1rem)!important;
  padding: 0.5rem!important;
}



@media (max-width: 1100px) {
  .pc_matrix{
    grid-template-columns: repeat(2, 50%);
  }

  .pc_matrix .pc_col:last-child{
    grid-column: span 2;
  }
  
}


@media (max-width: 768px) {

  .header {
    display: none;
  }

  .row {
    grid-template-columns: 1fr;
    border: 1px solid #ddd;
    margin-bottom: 12px;
    border-radius: 6px;
  }

  .row > div {
    display: grid;
    grid-template-columns: 140px 1fr;
    padding: 8px 12px;
  }

  .row > div::before {
    content: attr(data-label);
    font-weight: 600;
    color: #555;
  }
}

